package vn.com.pavibook.model.vo;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

public class CustomerVO {
	
	private Integer id;
	
	@NotEmpty(message = "Nhập thông tin")
	@Size(max=255, message = "Tên không quá 225 ký tự")
	private String firstname;
	
	@NotEmpty(message = "Nhập thông tin")
	@Size(max=255, message = "Tên không quá 225 ký tự")
	private String lastname;
	
	@NotEmpty(message = "Nhập thông tin")
	@Size(max=255, message = "Tên không quá 225 ký tự")
	private String middle;
	
	@NotEmpty(message = "Nhập thông tin")
	private String birthday;
	
	private String gender;
	
	private String address;
	
	@NotEmpty(message = "Nhập thông tin")
	private String phone;
	
	private String country;
	
	private Double pointCart;
	
	private int accountId;
	
	private boolean active;
	
	@NotEmpty(message = "Nhập thông tin")
	@Email (message = "Email không đúng (Ví dụ: abc@example.com)")
	private String email;
	
	@NotEmpty(message = "Nhập thông tin")
	private String username;
	
	@NotEmpty(message = "Nhập thông tin")
	@Size(min = 8, max = 150, message="Nhập password ít nhất 8 ký tự")
	private String password;
	
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getMiddle() {
		return middle;
	}

	public void setMiddle(String middle) {
		this.middle = middle;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public Double getPointCart() {
		return pointCart;
	}

	public void setPointCart(Double pointCart) {
		this.pointCart = pointCart;
	}

	public int getAccountId() {
		return accountId;
	}

	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
